package com.kitty.spring.annotationdriven.factory;

import com.kitty.spring.annotationdriven.beans.Color;
import org.springframework.beans.factory.FactoryBean;

/**
 * @Description
 * @Author SHEN
 * @Date 2020/12/6
 */
public class MyFactoryBean implements FactoryBean<Color> {
    @Override
    public Color getObject() throws Exception {
        return new Color();
    }

    @Override
    public Class<?> getObjectType() {
        return Color.class;
    }

    @Override
    public boolean isSingleton() {
        return true;
    }
}
